package domain;
import java.util.ArrayList;
import java.util.List;


public class Table {

	private String name;

	private List<String> children = new ArrayList<String>();

	public Table(final String tableName) {
		name = tableName;
	}

	public void setChildren(final List<String> children) {
		this.children = children;
	}

	public List<String> getChildren() {
		return children;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		for (String child : children) {
			builder.append(child);
			builder.append(", ");
		}

		return builder.toString();
	}
}
